import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import './assets/fonts/iconfont.css';
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import {createPinia} from 'pinia'
import piniaPersistedState from 'pinia-plugin-persistedstate';
//动态路由
import './permission'
const pinia = createPinia();
pinia.use(piniaPersistedState);

createApp(App).use(pinia).use(ElementPlus, {locale: zhCn,}).use(router).mount('#app')
